package com.secxiot.provider.user.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
public class SysExchangeRules implements Serializable {
    private static final long serialVersionUID = -7315184258777103835L;

    @ApiModelProperty(value = "兑换规则ID", required = true)
    private Long exchangeRulesId;

    @ApiModelProperty(value = "医院ID", required = true)
    private Long hospitalId;

    @ApiModelProperty(value = "商品编码", required = true)
    private String goodsCode;

    @ApiModelProperty(value = "商品名称", required = true)
    private String goodsName;

    @ApiModelProperty(value = "商品价格", required = true)
    private String goodsPrice;

    @ApiModelProperty(value = "商品图片", required = true)
    private String goodsUrl;

    @ApiModelProperty(value = "商品总数量", required = true)
    private Long totalNum;

    @ApiModelProperty(value = "每一个商品所需积分数量", required = true)
    private Long integralNum;

    @ApiModelProperty(value = "开始时间", required = true)
    private Date startTime;

    @ApiModelProperty(value = "结束时间", required = true)
    private Date endTime;

    @ApiModelProperty(value = "状态：0-无效，1-有效", required = true)
    private Integer status;

    @ApiModelProperty(value = "创建人", required = true)
    private Long createrId;

    @ApiModelProperty(value = "创建时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "编辑人", required = false)
    private Long modifierId;

    @ApiModelProperty(value = "编辑时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;
}